package org.example.adapter;

/**
 * 鸭火鸡适配器
 *
 * @author lzf 2024/3/31 11:30:05
 */
public class DuckTurkey implements Duck {
    private final Turkey turkey;

    public DuckTurkey(Turkey turkey) {
        this.turkey = turkey;
    }

    @Override
    public void quack() {
        turkey.gobble();
    }
}
